import request from '@/utils/request'

/**
 * 周详情
 * @param {*} id
 * @returns
 */
export function weekTaskDetail(id) {
  return request({
    url: `/api/v1/ctmShopBuildWeeklyTaskFollowUp/${id}`,
    method: 'GET'
  })
}

/**
 * 编辑
 * @param {*} data
 * @returns
 */
export function editWeekTask(data) {
  return request({
    url: '/api/v1/ctmShopBuildWeeklyTaskFollowUp',
    method: 'PUT',
    data
  })
}

export function submitWeekTask(data) {
  return request({
    url: '/api/v1/ctmShopBuildWeeklyTaskFollowUp/submit',
    method: 'PUT',
    data
  })
}

/**
 * 审核
 * @param {*} data
 * @returns
 */
export function auditWeekTask(data) {
  return request({
    url: '/api/v1/ctmShopBuildWeeklyTaskFollowUp/aduit',
    method: 'PUT',
    data
  })
}

